<template>
	<div class="zhengtuojianhuo">
		<van-nav-bar :fixed="true" class="navBar" title="采购退货" left-arrow @click-left="$router.go(-1)"></van-nav-bar>




		<div class="goodsFromWarp">
				<div class="goodsInputWarp">
						<div class="goodsInputLabel">
							<div class="goodsInputBorder"></div>
							<div class="skuName">商品编码：</div>
						</div>

						<van-field
							 class="skuInput"
							 clearable
							 v-model="editForm.itemid"
							 placeholder="请填写商品编码"
						 />
				</div>
		</div>

		<!-- do_inputspbar 查询 -->
		<input
			v-model="inputs"
			type="text"
			placeholder="请扫描条码"
			@keyup="onEnter($event,do_inputspbar)"
			 />
		<div class="skuBtn">
			<van-button type="info" :disabled="isdisabled" @click="lingquBtn()">领取任务</van-button>
			<van-button type="info" :disabled="isdisabled" @click="saveGoodsBtn()">确认</van-button>
		</div>


	</div>
</template>

<script>

export default {
  name: 'text',
  data() {
    return {
			editForm:{
				itemid:'',
			},
		};
  },
	computed: {
	   ryuser: function(){
	     return this.GWO(true).gUSER;
	   }
	},
  methods: {
		do_inputspbar(pmtxt){
			console.log(pmtxt)  //扫描枪获取的参数
			this.editForm.cwno = pmtxt
			this._getCode()
		},
		_getCode(){

		},
  },
  mounted() {

  },
	components: {

	},
};
</script>

<style lang="scss" scoped>
	// 引入公共样式
	@import '@/assets/css/base.scss';
	@import '@/assets/css/input.scss';
	div.zhengtuojianhuo{
		padding-top: 50px;
	}

</style>
